package com.ht.right.service;

import java.util.List;
import java.util.Map;

import com.ht.right.entity.Role;
import com.ht.right.entity.User;
import com.ht.right.entity.UserToRole;


public interface OrgFacadeService {
	//添加用户
	public void addUser(User user, String sameLevelNodeId);
	//删除部门
	public void deleteDept(String deptId);
	//创建组织结构树
	public List<Map<String, String>> findOrgTree();
	//登录验证
	public Map<String, Object> login(User user);
	//根据roleid查找users
	public List<Map<String, String>> findUserIdByRole(Role role);
	//保存角色时，生产中间表
	public void saveUserToRole(Role role,String userList);
	//更新角色及中间表
	public void updateUserToRole(Role role, UserToRole userToRole,String addUserList);
}